#! /bin/bash
set -e

NOW_DIR=$(cd -P $(dirname "$0");pwd)

# 输出
log(){
    case $1 in
     0)
            echo "$2"
            ;;
     *)
            echo -e "\033[31m ERROR: $2 \033[0m"
            exit 1
            ;;
    esac
}

docker build --rm -f "${NOW_DIR}/Dockerfile" -t iredis:6.2.6 .